Skip to content
Cartograph Maps

Importing online maps (.onlinemap files)

An online map definition file (extension .onlinemap) is a small JSON file that describes one or more online maps, optionally in folders: the tile server address, the zoom range, the attribution, HTTP headers, the projection and, if needed, scripts. Cartograph Maps adds every map in the file to the map manager’s Online list. No map data is downloaded; the tiles are loaded when you use the map (see Online maps).

Ways to import

  • Install link: tap a link of the form cartograph-s://www.example.com/maps.onlinemap (cartograph:// for plain HTTP). The app downloads the file and imports it. The Online maps page has such links for ready-made maps.
  • Open the file with Cartograph Maps, for example from a file manager, a download or an e-mail attachment.
  • In the app: map manager → Online → + → Import map file, then select the .onlinemap file (a .txt or a ZIP file containing it works too).

The maps go into the folders the file defines. A short “Success” confirms the import. Imported maps can be used with the tile downloader; you can switch this off per map with Enable tile download in its properties (the file’s enable_tile_download field is ignored).

Updating maps

Each map has a unique_id. When you import a file again, maps with the same id replace the existing ones, so the provider of a file can fix an address by publishing a new version. Values you entered for a map’s script parameters (an API key, for example) are kept.

Maps with scripts

An .onlinemap file can contain JavaScript init and tile scripts (see Online map scripts). Before importing such a file, the app names the maps with scripts and asks whether to import them: scripts run inside the app when the map loads and can send network requests, including the values you enter as parameters. Import only files from sources you trust. Example: How to use Strava Heatmaps in Cartograph Maps.

A file written for a newer script version than your app supports is imported without its scripts.

Make your own file